ABC243 C - Collision 2
提出
WA
code: python
n = int(input())
s = input()
# Yが同じ かつ Rx < Lx
Rx = {}
Lx = {}
for idx, i in enumerate(xy):
else:
else:
else:
for y, x in Rx.items():
if (y in Lx and Lxy > x): print("Yes")
exit()
print("No")
解答
code: python
from collections import defaultdict
n = int(input())
s = input()
y = set()
for i in xy:
l, r = defaultdict(list), defaultdict(list)
for i, v in enumerate(xy):
else:
for i in y:
if len(li) > 0 and len(ri) > 0: # Y軸に R, L 双方の存在 print("Yes")
exit()
print("No")
テーマ
メモ
提出
WA
code: python
from collections import defaultdict
n = int(input())
s = input()
# Y軸単位
# R < L -> Yes
# Y = 10^9
r = defaultdict(int)
l = defaultdict(int)
for i, v in enumerate(xy):
else:
# print(r, l)
print("Yes")
exit()
print("No")